function ckeditor_htmlbutton_load_button in CKEditor HTML Buttons (for WYSIWYG and CKEditor) 7
CKEditor button database load function.
2 calls to ckeditor_htmlbutton_load_button()
- ckeditor_htmlbuttons_button_load in ./
ckeditor_htmlbuttons.module - CKEditor button Wildcard menu loader.
- ckeditor_htmlbuttons_delete_confirm in ./
ckeditor_htmlbuttons.admin.inc - Menu callback -- ask for confirmation of rule deletion.
File
- ./
ckeditor_htmlbuttons.module, line 106 - Basic module file for CKEditor HTML Buttons.
Code
function ckeditor_htmlbutton_load_button($name) {
$button_results = db_query('SELECT * FROM {ckeditor_htmlbuttons} WHERE name = :name', array(
':name' => $name,
));
$button = $button_results
->fetchObject();
$t_item = NULL;
if ($button != NULL) {
$t_item = array(
'title' => $button->title,
'fid' => $button->fid,
'html' => $button->html,
'name' => $name,
);
}
return $t_item;
}