Back to Dropdown class

Method unarchive

public static void
unarchive
(mixed $checkboxId, mixed $prefix = '')
Append an unarchive item to the current dropdown menu
Parameters
  • string $checkboxId ID of corresponding checkbox of the record
  • string $prefix The task prefix
Returns
  • void
Since
  • 3.0
Class: Dropdown
Project: Joomla

Method unarchive - Source code

/**
 * Append an unarchive item to the current dropdown menu
 *
 * @param   string  $checkboxId  ID of corresponding checkbox of the record
 * @param   string  $prefix      The task prefix
 *
 * @return  void
 *
 * @since   3.0
 */
public static function unarchive($checkboxId, $prefix = '')
{
    $task = $prefix . 'unpublish';
    static::addCustomItem(Text::_('JTOOLBAR_UNARCHIVE'), 'javascript:void(0)', 'onclick="contextAction(\'' . $checkboxId . '\', \'' . $task . '\')"');
}