You are here

function _photos_del_checkbox in Album Photos 7.3

Same name and namespace in other branches
  1. 6.2 inc/photos.edit.inc \_photos_del_checkbox()

Handles image edit list delete checkbox.

2 calls to _photos_del_checkbox()
photos_editlist_form in inc/photos.edit.inc
Edit list form.
theme_photos_editlist_form in inc/photos.edit.inc
Theme photos edit list.

File

inc/photos.edit.inc, line 960
Handles uploading and editing images.

Code

function _photos_del_checkbox($t = 0, $title = FALSE) {
  if ($t) {
    return ($t == 1 ? t('Delete') : $t) . '<input type="checkbox" name="del_check" id="del_check" />';
  }
  else {
    return array(
      '#title' => $title . ' ',
      '#type' => 'checkbox',
      '#prefix' => '<div class="edit-del-all">',
      '#suffix' => '</div>',
    );
  }
}