Bitrix Site Manager

CBitrixComponent::AddIncludeAreaIcons

void
AddIncludeAreaIcons(
 array arIcons
);

The method adds an array of new buttons to component buttons that are displayed in the component area in the site editing mode. Calling AddIncludeAreaIcons dismisses all previous calls to AddIncludeAreaIcons and AddIncludeAreaIcon.

Parameters

Parameter Description
arIcons An array containing arrays that describe the button. Each of arrays describing the button has the following format:
array(
    'URL'   => "javascript:alert('It's a new button');",
    'SRC'   => $this->GetPath().'/images/znak.gif',
    'TITLE' => "It's a new button"
)    

Example


$this->AddIncludeAreaIcons(
    array(
        array(
            'URL' => "javascript:alert('It's a new button for ".$this->GetName()."');",
            'SRC' => $this->GetPath().'/images/znak.gif',
            'TITLE' => "It's a new button"
        ),
        array(
            'URL' => "javascript:alert('It's another button for ".$this->GetName()."');",
            'SRC' => $this->GetPath().'/images/znak1.gif',
            'TITLE' => "It's another button"
        ),
    )
);

See Also

  • CBitrixComponent::AddIncludeAreaIcon